package com.sdry.service.impl.zc;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdry.mapper.zc.ZcEvaluateMapper;
import com.sdry.model.zc.ZcEvaluateEntity;
import com.sdry.model.zc.ZcQueryCriteria;
import com.sdry.service.zc.ZcEvaluateService;

/**
 * 
 * @ClassName:    ZcEvaluateServiceImpl   
 * @Description:  组件评价
 * @Author:       zc   
 * @CreateDate:   2018年10月10日 上午10:29:06   
 * @Version:      v1.0
 */
@Service
public class ZcEvaluateServiceImpl implements ZcEvaluateService {

	@Resource
	private ZcEvaluateMapper zcEvaluateMapper;
	/**
	 * 保存组件评价
	 */
	@Override
	public int insertEvaluate(ZcEvaluateEntity zcEvaluateEntity) {
		return zcEvaluateMapper.insertEvaluate(zcEvaluateEntity);
	}
	/**
	 * 查询今日组件评价记录
	 */
	@Override
	public List<ZcEvaluateEntity> selectTodayLogList(ZcQueryCriteria zcQueryCriteria) {
		return zcEvaluateMapper.selectTodayLogList(zcQueryCriteria);
	}
	/**
	 * 查询今日组件评价记录数量
	 */
	@Override
	public int countTodayLogList(ZcQueryCriteria zcQueryCriteria) {
		return zcEvaluateMapper.countTodayLogList(zcQueryCriteria);
	}

}
